public class Client {
    public static void main(String[] args)  throws  Exception{
        CopyObject copyObject=new CopyObject();
        Person person = new Person();
        person.setName("张三");
        copyObject.setPerson(person);
        CopyObject clone = copyObject.clone();
        copyObject.getPerson().setName("历史");
        clone.setPerson(person);

        System.out.println(copyObject.getPerson().getName());
        System.out.println(clone.getPerson().getName());
    }
}
